package com.jack.payment.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "公用请求参数")
public class CommonAskParam<T> implements Serializable {
    @Schema(description = "请求时携带的公共参数")
    private CommonAskHead common;
    @Schema(description = "自定义参数, 加密, 此段不传")
    @Valid
    private T data;
}
